from django.db import models

# Create your models here.
class Host(models.Model):
    host=models.CharField(verbose_name='主机',max_length=120)
    ip=models.GenericIPAddressField(verbose_name='IP')

    def __str__(self):
        return self.host

class Role(models.Model):
    title=models.CharField(verbose_name='角色名称',max_length=120)

    def __str__(self):
        return self.title

